package com.ktjiaotu.examples.service.impl;

import com.ktjiaotu.examples.dao.NewsDao;
import com.ktjiaotu.examples.pojo.News;
import com.ktjiaotu.examples.service.NewsService;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-06-04
 * @Description:
 * @Version: 1.0
 */
public class NewsServiceImpl implements NewsService {
    private NewsDao dao;

    public void setDao(NewsDao dao) {
        this.dao = dao;
    }

    public void addNews(News news) {
        dao.save(news);
    }

}
